<?php
/**
 * Created By: ST2
 * Created on 2014-08-21 18:33:05
 * author: yongchao.yu@kunlun-inc.com
 * coding: utf-8
*/
namespace MyApp\Module\_MyModule\Model;

class Article extends \Melon\App\Lib\PDOModel {

	protected $_table = 'hd_article'; //此处填写表名
    
    public function __construct() {
        parent::__construct();
    }

	public function get_articles() {
		$this->exec('set names utf8');
		$arr = $this->query('select * from ' . $this->_table);
		print_r($arr);
	}
}